package com.yfp.client.mapper;

import com.yfp.client.domain.ClientAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
*
* @description 针对表【client_address(客户收货地址)】的数据库操作Mapper
* @createDate 2025-03-05 11:58:15
* @Entity com.yfp.client.domain.ClientAddress
*/
public interface ClientAddressMapper extends BaseMapper<ClientAddress> {
    /**
     * 修改默认地址
     * @param clientId
     */
    void editByClientId(String clientId);

    /**
     * 查询客户默认地址
     * @param clientId
     * @return
     */
    ClientAddress findDefaultByClientId(String clientId);

    /**
     * 查询客户最后新增的地址
     * @param clientId
     * @return
     */
    ClientAddress findLastByClientId(String clientId);
}




